package lesson17.cars;

public class Jeep extends Car 
{
	boolean hasElevatedExhaustPipe;

	protected String type = "Jeep";
	
	Jeep(String model)
	{
		super(150);
	}
	
	Jeep()
	{
		super(150);
	}
	
	void switch4x4()
	{
		System.out.println(super.type);
		System.out.println("4x4 is on!");
	}
	
	void driveOffRoad()
	{
		System.out.println("Driving in the woods!");
	}
	
	@Override
	protected void startEngine() {
		System.out.println("Jeep engine started!!!");
	}
	
	@Override
	public String toString() {
	
		String result = new String("Jeep data: \n");
		result += "Model = " + model + "\n";
		result += "Max speed = " + getMaxSpeed() + "\n";
		return result;
	}
	
	@Override
	protected short getMaxSpeed() {
		System.out.println("Cant do it man ..");
		return -1;
	}
}
